<div id="content">
    <h2><?=$this->pageTitle?></h2>
    <table>
        <tr>
            <th><?=$GLOBALS["lang"]->_("title")?></th>
            <th><?=$GLOBALS["lang"]->_("created")?></th>
            <th><?=$GLOBALS["lang"]->_("creator")?></th>
            <th><?=$GLOBALS["lang"]->_("actions")?></th>
        </tr>
        <?php
        foreach ($this->pagesList as $page) {
        ?>
        <tr>
            <td>
                <?php for($i=1; $i<$page["level"]; $i++) echo "&emsp;";?>
                <a href="<?=$this->baseUrl()?>/content/edit/id/<?=$page["id"]?>"><?=$page["title"]?></a>
            </td>
            <td><?=date("D d/m/y H.i", $page["creation_date"])?></td>
            <td><?=$page["creator_id"]?></td>
            <td></td>
        </tr> 
        <?php
        }
        ?>
    </table>
</div>

<div id="rightMenu">
    <div id="responseDiv"></div>
    <a href="<?=$this->baseUrl()?>/content/new">
        <div class="button">
            <div class="newImg"></div>
            <div class="buttonText"><?=$GLOBALS["lang"]->_("new")?></div>
        </div>
    </a>
</div>